<?php

use Illuminate\Support\Facades\Route;

/*
 * |--------------------------------------------------------------------------
 * | API Routes
 * |--------------------------------------------------------------------------
 * |
 * | Here is where you can register API routes for your application. These
 * | routes are loaded by the RouteServiceProvider within a group which
 * | is assigned the "api" middleware group. Enjoy building your API!
 * |
 */

Route::group([
    'middleware' => 'auth'
], function () {
    // 用户认证
    Route::group([
        'prefix' => 'auth',
        'namespace' => 'Auth'
    ], function () {
        Route::post('logout', 'LoginController@logout');
    });

    // Home
    Route::group([
        'prefix' => 'home'
    ], function () {
        Route::get('getUser', 'HomeController@getUser');
        Route::post('update', 'HomeController@update');
        Route::post('updatePassword', 'HomeController@updatePassword');
    });

    // Admin
    Route::group([
        'prefix' => 'admin'
    ], function () {
        Route::get('getMenus', 'AdminController@getMenus');
        Route::get('getServers', 'AdminController@getServers');
        Route::post('setServer', 'AdminController@setServer');
        Route::get('getOrgList', 'AdminController@getOrgList');
        Route::post('setOrg', 'AdminController@setOrg');
        Route::post('setLanguage', 'AdminController@setLanguage');
        Route::get('getTimezones', 'AdminController@getTimezones');
        Route::post('setTimezone', 'AdminController@setTimezone');
        Route::post('setLayoutAsideWidth', 'AdminController@setLayoutAsideWidth');
    });

    // Common
    Route::group([
        'prefix' => 'common'
    ], function () {
        Route::get('getGameList', 'CommonController@getGameList');
        Route::get('getOrgList', 'CommonController@getOrgList');
        Route::get('searchUsers', 'CommonController@searchUsers');
        Route::get('getUserList', 'CommonController@getUserList');
        Route::get('getUsers', 'CommonController@getUsers');
        Route::get('getUser', 'CommonController@getUser');
        Route::get('getDictionaryList', 'CommonController@getDictionaryList');
        Route::get('getDictionary', 'CommonController@getDictionary');
        Route::get('getCurrencyList', 'CommonController@getCurrencyList');
    });

    // 平台
    Route::group([
        'prefix' => 'platform',
        'namespace' => 'Platform'
    ], function () {
        // 平台管理
        Route::group([
            'prefix' => 'setting',
            'namespace' => 'Setting',
            'middleware' => 'can:menu.platform.setting'
        ], function () {
            // 节点管理
            Route::group([
                'prefix' => 'org'
            ], function () {
                Route::get('getList', 'OrgController@getList');
                Route::post('store', 'OrgController@store');
                Route::post('update', 'OrgController@update');
                Route::post('destroy', 'OrgController@destroy');
            });
            // 平台配置
            Route::group([
                'prefix' => 'config'
            ], function () {
                Route::get('getData', 'ConfigController@getData');
                Route::post('updateOrCreate', 'ConfigController@updateOrCreate');
                Route::post('customCurrency', 'ConfigController@customCurrency');
                Route::post('updateOrCreateByUi', 'ConfigController@updateOrCreateByUi');
                Route::post('updateOrCreateByGames', 'ConfigController@updateOrCreateByGames');
                Route::get('cleanData', 'ConfigController@cleanData');
                Route::post('updateOrCreateRtp', 'ConfigController@updateOrCreateRtp');
                Route::post('updateOrCreateConfig', 'ConfigController@updateOrCreateConfig');
            });
            // IP白名单
            Route::group([
                'prefix' => 'ip'
            ], function () {
                Route::get('getData', 'IpController@getData');
                Route::post('updateOrCreate', 'IpController@updateOrCreate');
                Route::post('sync', 'IpController@sync');
            });
            // 访问密钥【转入转出】
            Route::group([
                'prefix' => 'access-key'
            ], function () {
                Route::get('getData', 'AccessKeyController@getData');
                Route::post('updateOrCreate', 'AccessKeyController@updateOrCreate');
                Route::post('destroy', 'AccessKeyController@destroy');
                Route::post('restore', 'AccessKeyController@restore');
            });
            // 访问密钥【无缝钱包】【延时】
            Route::group([
                'prefix' => 'wallet'
            ], function () {
                Route::get('getData', 'WalletController@getData');
                Route::post('updateOrCreate', 'WalletController@updateOrCreate');
                Route::post('destroy', 'WalletController@destroy');
                Route::post('restore', 'WalletController@restore');
                Route::post('verify', 'WalletController@verify');
            });
            // 访问密钥【无缝钱包】【实时】
            Route::group([
                'prefix' => 'wallet-timely'
            ], function () {
                Route::get('getData', 'WalletTimelyController@getData');
                Route::post('updateOrCreate', 'WalletTimelyController@updateOrCreate');
                Route::post('destroy', 'WalletTimelyController@destroy');
                Route::post('restore', 'WalletTimelyController@restore');
                Route::post('verify', 'WalletTimelyController@verify');
            });
        });
        // 后台用户
        Route::group([
            'prefix' => 'user',
            'middleware' => 'can:menu.platform.user'
        ], function () {
            Route::get('getList', 'UserController@getList');
            Route::post('saveItem', 'UserController@saveItem');
            Route::post('destroy', 'UserController@destroy');
            Route::post('restore', 'UserController@restore');
            Route::post('forceDestroy', 'UserController@forceDestroy');
        });
        // 平台收益
        Route::group([
            'prefix' => 'settlement',
            'middleware' => 'can:menu.platform.settlement'
        ], function () {
            Route::get('day', 'SettlementController@day');
            Route::get('month', 'SettlementController@month');
            Route::get('getUsd', 'SettlementController@getUsd');
        });
        // 接入文档
        Route::group([
            'prefix' => 'doc',
            'namespace' => 'Doc',
            'middleware' => 'can:menu.platform.doc'
        ], function () {
            // 节点管理
            Route::group([
                'prefix' => 'tree'
            ], function () {
                Route::get('getList', 'TreeController@getList');
                Route::post('store', 'TreeController@store');
                Route::post('update', 'TreeController@update');
                Route::post('destroy', 'TreeController@destroy');
            });
            // 文档管理
            Route::group([
                'prefix' => 'doc'
            ], function () {
                Route::get('getData', 'DocController@getData');
                Route::post('updateOrCreate', 'DocController@updateOrCreate');
            });
        });
        // 配置中心
        Route::group([
            'prefix' => 'config',
            'namespace' => 'Config'
        ], function () {
            // 投注配置
            Route::group([
                'prefix' => 'betting',
                'middleware' => 'can:menu.platform.config.betting'
            ], function () {
                Route::get('getList', 'BettingController@getList');
                Route::post('save', 'BettingController@save');
                Route::post('destroy', 'BettingController@destroy');
                Route::post('fullDefaultBets', 'BettingController@fullDefaultBets');
                Route::post('fullSourceBets', 'BettingController@fullSourceBets');
                Route::get('getCurrencyList', 'BettingController@getCurrencyList');
            });
        });
    });

    // 首页
    Route::group([
        'prefix' => 'index',
        'namespace' => 'Index',
        'middleware' => 'can:menu.index'
    ], function () {
        // 概要统计
        Route::group([
            'prefix' => 'summary'
        ], function () {
            Route::get('monitoring', 'SummaryController@monitoring');
            Route::get('playerRegister', 'SummaryController@playerRegister');
            Route::get('playerGame', 'SummaryController@playerGame');
            Route::get('playerGameNew', 'SummaryController@playerGameNew');
            Route::get('amount', 'SummaryController@amount');
        });
        // 统计图
        Route::group([
            'prefix' => 'chart'
        ], function () {
            Route::get('online', 'ChartController@online');
            Route::get('amount', 'ChartController@amount');
            Route::get('transfer', 'ChartController@transfer');
            Route::get('wallet', 'ChartController@wallet');
        });
    });

    // 统计
    Route::group([
        'prefix' => 'stats',
        'namespace' => 'Stats'
    ], function () {
        // 概要统计
        Route::group([
            'prefix' => 'summary',
            'middleware' => 'can:menu.stats.summary'
        ], function () {
            Route::get('topPlayerBet', 'SummaryController@topPlayerBet');
            Route::get('topPlayerGain', 'SummaryController@topPlayerGain');
            Route::get('topPlayerCount', 'SummaryController@topPlayerCount');
            Route::get('topDocCount', 'SummaryController@topDocCount');
        });
        // 玩家分析
        Route::group([
            'prefix' => 'user',
            'namespace' => 'User'
        ], function () {
            // 游戏分析
            Route::group([
                'prefix' => 'player',
                'middleware' => 'can:menu.stats.user.player'
            ], function () {
                Route::get('day', 'PlayerController@day');
                Route::get('week', 'PlayerController@week');
                Route::get('month', 'PlayerController@month');
            });
            // 玩家留存
            Route::group([
                'prefix' => 'retention',
                'middleware' => 'can:menu.stats.user.retention'
            ], function () {
                Route::get('game', 'RetentionController@game');
                Route::get('sign', 'RetentionController@sign');
            });
            // 玩家投注
            Route::group([
                'prefix' => 'player-bet',
                'middleware' => 'can:menu.stats.user.player-bet'
            ], function () {
                Route::get('hour', 'PlayerBetController@hour');
                Route::get('day', 'PlayerBetController@day');
                Route::get('month', 'PlayerBetController@month');
            });
        });
        // 游戏分析
        Route::group([
            'prefix' => 'game',
            'namespace' => 'Game'
        ], function () {
            // 游戏统计
            Route::group([
                'prefix' => 'game',
                'middleware' => 'can:menu.stats.game.game'
            ], function () {
                Route::get('getList', 'GameController@getList');
                Route::get('getUsd', 'GameController@getUsd');
            });
            // 最佳游戏
            Route::group([
                'prefix' => 'best',
                'middleware' => 'can:menu.stats.game.best'
            ], function () {
                Route::get('topPlayerBet', 'BestController@topPlayerBet');
                Route::get('topPlayerGain', 'BestController@topPlayerGain');
                Route::get('topPlayerCount', 'BestController@topPlayerCount');
                Route::get('topDocCount', 'BestController@topDocCount');
            });
        });
        // 平台分析
        Route::group([
            'prefix' => 'platform',
            'namespace' => 'Platform'
        ], function () {
            // 平台统计
            Route::group([
                'prefix' => 'settlement',
                'middleware' => 'can:menu.stats.platform.settlement'
            ], function () {
                Route::get('all', 'SettlementController@all');
                Route::get('game', 'SettlementController@game');
                Route::get('gameScene', 'SettlementController@gameScene');
                Route::get('getUsd', 'SettlementController@getUsd');
            });
            // 最佳平台
            Route::group([
                'prefix' => 'best',
                'middleware' => 'can:menu.stats.platform.best'
            ], function () {
                Route::get('topPlayerBet', 'BestController@topPlayerBet');
                Route::get('topPlayerGain', 'BestController@topPlayerGain');
                Route::get('topPlayerCount', 'BestController@topPlayerCount');
                Route::get('topDocCount', 'BestController@topDocCount');
            });
        });
        // 预警分析
        Route::group([
            'prefix' => 'risk',
            'namespace' => 'Risk'
        ], function () {
            // SLO
            Route::group([
                'prefix' => 'slo',
                'middleware' => 'can:menu.stats.risk.slo'
            ], function () {
                Route::get('getConfig', 'SloController@getConfig');
                Route::post('updateOrCreateConfig', 'SloController@updateOrCreateConfig');
                Route::get('topPlayer', 'SloController@topPlayer');
                Route::get('topGame', 'SloController@topGame');
                Route::get('topOrgGame', 'SloController@topOrgGame');
            });
        });
    });

    // 游戏
    Route::group([
        'prefix' => 'game',
        'namespace' => 'Game'
    ], function () {
        // 玩家管理
        Route::group([
            'prefix' => 'user',
            'middleware' => 'can:menu.game.user'
        ], function () {
            Route::get('getList', 'UserController@getList');
            Route::post('updateRole', 'UserController@updateRole');
            Route::post('updateAccess', 'UserController@updateAccess');
            Route::post('updateModel', 'UserController@updateModel');
            Route::post('updateFishRatio', 'UserController@updateFishRatio');
        });
        // 数据查询
        Route::group([
            'prefix' => 'data',
            'namespace' => 'Data'
        ], function () {
            // 游戏记录
            Route::group([
                'prefix' => 'settlement',
                'middleware' => 'can:menu.game.data.settlement'
            ], function () {
                Route::get('getList', 'SettlementController@getList');
                Route::get('getDetail', 'SettlementController@getDetail');
                Route::get('getDetailData', 'SettlementController@getDetailData');
            });
            // 消耗日志
            Route::group([
                'prefix' => 'log-cost',
                'namespace' => 'Log',
                'middleware' => 'can:menu.game.data.log-cost'
            ], function () {
                Route::get('getList', 'CostController@getList');
            });
            // 登录日志
            Route::group([
                'prefix' => 'log-login',
                'namespace' => 'Log',
                'middleware' => 'can:menu.game.data.log-login'
            ], function () {
                Route::get('getList', 'LoginController@getList');
            });
            // 游戏日志
            Route::group([
                'prefix' => 'log-game',
                'namespace' => 'Log',
                'middleware' => 'can:menu.game.data.log-game'
            ], function () {
                Route::get('getList', 'GameController@getList');
            });
        });
        // 游戏管理
        Route::group([
            'prefix' => 'setting',
            'namespace' => 'Setting'
        ], function () {
            // 公告停服
            Route::group([
                'prefix' => 'maintenance'
            ], function () {
                Route::group([
                    'middleware' => 'can:menu.game.setting.server'
                ], function () {
                    Route::get('getServerStatus', 'MaintenanceController@getServerStatus');
                    Route::post('updateServerStatus', 'MaintenanceController@updateServerStatus');
                });
                Route::group([
                    'middleware' => 'can:menu.game.setting.server'
                ], function () {
                    Route::get('getBroadcast', 'MaintenanceController@getBroadcast');
                    Route::post('publishBroadcast', 'MaintenanceController@publishBroadcast');
                });
            });
            // 游戏域名
            Route::group([
                'prefix' => 'domain',
                'middleware' => 'can:menu.game.setting.domain'
            ], function () {
                Route::get('getList', 'DomainController@getList');
                Route::post('saveItem', 'DomainController@saveItem');
                Route::post('destroy', 'DomainController@destroy');
                Route::post('updateConfig', 'DomainController@updateConfig');
            });
            // 游戏列表
            Route::group([
                'prefix' => 'game',
                'middleware' => 'can:menu.game.setting.game'
            ], function () {
                Route::get('getList', 'GameController@getList');
                Route::post('saveItem', 'GameController@saveItem');
                Route::post('destroy', 'GameController@destroy');
                Route::post('restore', 'GameController@restore');
                Route::post('forceDestroy', 'GameController@forceDestroy');
            });
            // 游戏配置
            Route::group([
                'prefix' => 'config',
                'namespace' => 'Config',
                'middleware' => 'can:menu.game.setting.config.index'
            ], function () {
                // SLO【基本】
                Route::group([
                    'prefix' => 'basic'
                ], function () {
                    Route::get('{game}/getConfig', 'BasicController@getConfig');
                    Route::post('{game}/update', 'BasicController@update');
                    Route::get('{game}/{platform}/getConfigPlat', 'BasicController@getConfigPlat');
                    Route::post('{game}/{platform}/updatePlat', 'BasicController@updatePlat');
                });
                // SLO【初级】
                Route::group([
                    'prefix' => 'elementary'
                ], function () {
                    Route::get('{game}/getConfig', 'ElementaryController@getConfig');
                    Route::post('{game}/update', 'ElementaryController@update');
                    Route::get('{game}/{platform}/getConfigPlat', 'ElementaryController@getConfigPlat');
                    Route::post('{game}/{platform}/updatePlat', 'ElementaryController@updatePlat');
                });
                // FISH
                Route::group([
                    'prefix' => 'fishing'
                ], function () {
                    Route::get('{game}/getConfig', 'FishingController@getConfig');
                    Route::post('{game}/update', 'FishingController@update');
                    Route::get('{game}/{platform}/getConfigPlat', 'FishingController@getConfigPlat');
                    Route::post('{game}/{platform}/updatePlat', 'FishingController@updatePlat');
                });
                // Tiger
                Route::group([
                    'prefix' => 'tiger'
                ], function () {
                    Route::get('{game}/getConfig', 'TigerController@getConfig');
                    Route::post('{game}/update', 'TigerController@update');
                    Route::get('{game}/{platform}/getConfigPlat', 'TigerController@getConfigPlat');
                    Route::post('{game}/{platform}/updatePlat', 'TigerController@updatePlat');
                });
            });
        });
        // 辅助功能
        Route::group([
            'prefix' => 'other',
            'namespace' => 'Other'
        ], function () {
            // 数据字典
            Route::group([
                'prefix' => 'dictionary'
            ], function () {
                Route::get('getList', 'DictionaryController@getList');
                Route::post('store', 'DictionaryController@store');
                Route::post('destroy', 'DictionaryController@destroy');
            });
            // 游戏公告
            Route::group([
                'prefix' => 'broadcast',
                'middleware' => 'can:menu.game.other.broadcast'
            ], function () {
                Route::get('getList', 'BroadcastController@getList');
                Route::post('saveItem', 'BroadcastController@saveItem');
            });
            // 邮件管理
            Route::group([
                'prefix' => 'mail',
                'namespace' => 'Mail',
                'middleware' => 'can:menu.game.other.mail'
            ], function () {
                // 玩家邮件
                Route::group([
                    'prefix' => 'player'
                ], function () {
                    Route::get('getList', 'PlayerController@getList');
                    Route::post('store', 'PlayerController@store');
                    Route::post('update', 'PlayerController@update');
                    Route::post('sendMail', 'PlayerController@sendMail');
                    Route::post('destroy', 'PlayerController@destroy');
                });
                // 全服邮件
                Route::group([
                    'prefix' => 'server'
                ], function () {
                    Route::get('getList', 'ServerController@getList');
                    Route::post('store', 'ServerController@store');
                    Route::post('update', 'ServerController@update');
                    Route::post('sendMail', 'ServerController@sendMail');
                    Route::post('destroy', 'ServerController@destroy');
                });
            });
            // 活动配置
            Route::group([
                'prefix' => 'activity',
                'namespace' => 'Activity',
                'middleware' => 'can:menu.game.other.activity'
            ], function () {
                // 签到
                Route::group([
                    'prefix' => 'sign'
                ], function () {
                    Route::get('getConfig', 'SignController@getConfig');
                    Route::post('update', 'SignController@update');
                });
                // 排行
                Route::group([
                    'prefix' => 'ranking'
                ], function () {
                    Route::get('getConfig', 'RankingController@getConfig');
                    Route::post('update', 'RankingController@update');
                });
                // 转盘
                Route::group([
                    'prefix' => 'turntable'
                ], function () {
                    Route::get('getConfig', 'TurntableController@getConfig');
                    Route::post('update', 'TurntableController@update');
                });
                // 付费转盘
                Route::group([
                    'prefix' => 'turntable-pay'
                ], function () {
                    Route::get('getConfig', 'TurntablePayController@getConfig');
                    Route::post('update', 'TurntablePayController@update');
                });
            });
        });
        // 配置中心
        Route::group([
            'prefix' => 'config',
            'namespace' => 'Config'
        ], function () {
            // 投注配置
            Route::group([
                'prefix' => 'betting',
                'middleware' => 'can:menu.game.config.betting'
            ], function () {
                Route::get('getList', 'BettingController@getList');
                Route::post('save', 'BettingController@save');
                Route::post('destroy', 'BettingController@destroy');
                Route::post('fullGameBets', 'BettingController@fullGameBets');
                Route::get('getGameDetails', 'BettingController@getGameDetails');
                //  bet覆盖bet1
                Route::get('resettingBetData', 'BettingController@resettingBetData');
            });
            // 币种列表
            Route::group([
                'prefix' => 'currency',
                'middleware' => 'can:menu.game.config.currency'
            ], function () {
                Route::get('getList', 'CurrencyController@getList');
                Route::post('refresh', 'CurrencyController@refresh');
            });
            // 游戏控制
            Route::group([
                'prefix' => 'rtpConfig',
                'middleware' => 'can:menu.game.config.rtpConfig'
            ], function () {
                Route::get('getData', 'RtpConfigController@getData');
                Route::post('save', 'RtpConfigController@save');
            });
        });
    });

    // 支付
    Route::group([
        'prefix' => 'pay',
        'namespace' => 'Pay'
    ], function () {
        // 订单管理
        Route::group([
            'prefix' => 'order',
            'namespace' => 'Order'
        ], function () {
            // 转入转出
            Route::group([
                'prefix' => 'transfer',
                'middleware' => 'can:menu.pay.order.transfer'
            ], function () {
                Route::get('getList', 'TransferController@getList');
                Route::post('refresh', 'TransferController@refresh');
            });
            // 共享钱包
            Route::group([
                'prefix' => 'wallet',
                'middleware' => 'can:menu.pay.order.wallet'
            ], function () {
                Route::get('getList', 'WalletController@getList');
                Route::post('orderCancel', 'WalletController@orderCancel');
            });
        });
    });

    // 系统
    Route::group([
        'prefix' => 'system',
        'namespace' => 'System'
    ], function () {
        // 系统配置
        Route::group([
            'prefix' => 'setting',
            'namespace' => 'Setting'
        ], function () {
            // 语言配置
            Route::group([
                'prefix' => 'language',
                'middleware' => 'can:menu.system.setting.language'
            ], function () {
                Route::get('getList', 'LanguageController@getList');
                Route::post('saveItem', 'LanguageController@saveItem');
                Route::post('destroy', 'LanguageController@destroy');
                Route::post('restore', 'LanguageController@restore');
                Route::post('forceDestroy', 'LanguageController@forceDestroy');
            });
            // 分区配置
            Route::group([
                'prefix' => 'server',
                'middleware' => 'can:menu.system.setting.server'
            ], function () {
                Route::get('getList', 'ServerController@getList');
                Route::post('saveItem', 'ServerController@saveItem');
                Route::post('destroy', 'ServerController@destroy');
                Route::post('restore', 'ServerController@restore');
                Route::post('forceDestroy', 'ServerController@forceDestroy');
            });
            // 目录菜单
            Route::group([
                'prefix' => 'menu',
                'middleware' => 'can:menu.system.setting.menu'
            ], function () {
                Route::get('getList', 'MenuController@getList');
                Route::post('store', 'MenuController@store');
                Route::post('update', 'MenuController@update');
                Route::post('destroy', 'MenuController@destroy');
                Route::post('restore', 'MenuController@restore');
                Route::post('forceDestroy', 'MenuController@forceDestroy');
                // 页面功能
                Route::group([
                    'prefix' => 'action'
                ], function () {
                    Route::get('getList', 'MenuActionController@getList');
                    Route::post('save', 'MenuActionController@save');
                });
            });
        });
        // 后台用户
        Route::group([
            'prefix' => 'user',
            'middleware' => 'can:menu.system.user'
        ], function () {
            Route::get('getList', 'UserController@getList');
            Route::post('saveItem', 'UserController@saveItem');
            Route::post('destroy', 'UserController@destroy');
            Route::post('restore', 'UserController@restore');
            Route::post('forceDestroy', 'UserController@forceDestroy');
        });
        // 权限管理
        Route::group([
            'prefix' => 'permission',
            'namespace' => 'Permission',
            'middleware' => 'can:menu.system.permission'
        ], function () {
            // 权限树
            Route::group([
                'prefix' => 'tree'
            ], function () {
                Route::get('getList', 'TreeController@getList');
                Route::post('store', 'TreeController@store');
                Route::post('update', 'TreeController@update');
                Route::post('destroy', 'TreeController@destroy');
            });
            // 授权用户
            Route::group([
                'prefix' => 'tree-user'
            ], function () {
                Route::get('getUserList', 'TreeUserController@getUserList');
                Route::get('getUsers', 'TreeUserController@getUsers');
                Route::post('update', 'TreeUserController@update');
            });
            // 授权页面
            Route::group([
                'prefix' => 'tree-menu'
            ], function () {
                Route::get('getMenuList', 'TreeMenuController@getMenuList');
                Route::get('getMenus', 'TreeMenuController@getMenus');
                Route::post('update', 'TreeMenuController@update');
            });
            // 授权平台
            Route::group([
                'prefix' => 'tree-org'
            ], function () {
                Route::get('getOrgList', 'TreeOrgController@getOrgList');
                Route::get('getOrgs', 'TreeOrgController@getOrgs');
                Route::post('update', 'TreeOrgController@update');
            });
        });
        // 活动日志
        Route::group([
            'prefix' => 'log',
            'namespace' => 'Log'
        ], function () {
            // 操作日志
            Route::group([
                'prefix' => 'activity',
                'middleware' => 'can:menu.system.log.activity'
            ], function () {
                Route::get('getList', 'ActivityController@getList');
            });
            // 登录日志
            Route::group([
                'prefix' => 'login',
                'middleware' => 'can:menu.system.log.login'
            ], function () {
                Route::get('getList', 'LoginController@getList');
            });
        });
        // 游戏测试
        Route::group([
            'prefix' => 'testing',
            'namespace' => 'Testing',
            'middleware' => 'can:menu.system.testing'
        ], function () {
            // 玩家
            Route::group([
                'prefix' => 'player',
            ], function () {
                Route::post('login', 'PlayerController@login');
                Route::post('logout', 'PlayerController@logout');
            });
            // 订单
            Route::group([
                'prefix' => 'order',
            ], function () {
                Route::post('transfer_in', 'OrderController@transferIn');
                Route::post('transfer_out', 'OrderController@transferOut');
            });
        });
        // 工具箱
        Route::group([
            'prefix' => 'tools',
            'namespace' => 'Tools'
        ], function () {
            // fish
            Route::group([
                'prefix' => 'fish',
                'middleware' => 'can:menu.system.tools.fish-fire'
            ], function () {
                Route::get('getFire', 'FishController@getFire');
            });

            // slot
            Route::group([
                'prefix' => 'slot',
                'middleware' => 'can:menu.system.tools.slot-game'
            ], function () {
                Route::get('getFire', 'SlotController@getFire');
            });
        });
    });
});
